<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      blocaled-0.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;12.&nbsp;System Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="elogind.html" title="elogind-243.7">Prev</a>
          <p>
            elogind-243.7
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fcron.html" title="Fcron-3.2.1">Next</a>
          <p>
            Fcron-3.2.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="blocaled" name="blocaled"></a>blocaled-0.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to blocaled
        </h2>
        <p>
          <span class="application">blocaled</span> is an implementation of
          the <span class="emphasis"><em>org.freedesktop.locale1</em></span>
          D&ndash;Bus protocol, which normally comes with <span class=
          "application">systemd</span>. It is needed by the <span class=
          "application">GNOME</span> desktop.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/pierre-labastie/blocaled/releases/download/v0.2/blocaled-0.2.tar.xz">
                https://github.com/pierre-labastie/blocaled/releases/download/v0.2/blocaled-0.2.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: bb9935b6ef727d50c7a733e9fdee40bf
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 256 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 4.2 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.1 SBU (with tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          blocaled Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../postlfs/polkit.html" title=
          "Polkit-0.116">Polkit-0.116</a> and <a class="xref" href=
          "libdaemon.html" title="libdaemon-0.14">libdaemon-0.14</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/blocaled">http://wiki.linuxfromscratch.org/blfs/wiki/blocaled</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of blocaled
        </h2>
        <p>
          Install <span class="application">blocaled</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring blocaled
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="blocaled-config" name="blocaled-config"></a>
          </h3>
          <h4 class="title">
            <a id="blocaled-config" name="blocaled-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">/etc/blocaled.conf</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm140006452170640" name=
            "idm140006452170640"></a>Configuration Information
          </h4>
          <p>
            <code class="filename">/etc/blocaled.conf</code> contains the
            location of the settings files used by <span class=
            "application">blocaled</span>. The defaults are suitable for
            BLFS. Information about the entries is available as comments in
            the file.
          </p>
          <p>
            The <span class=
            "emphasis"><em>org.freedesktop.locale1</em></span> protocol is
            unable to export locale variables. Locale settings are stored by
            default in <code class="filename">/etc/locale.conf</code>. We
            need to retrieve them in the bash profile. As the <code class=
            "systemitem">root</code> user, issue:
          </p>
          <pre class="root">
<kbd class="command">cat &gt; /etc/profile.d/i18n.sh &lt;&lt; "EOF"
<code class="literal"># Begin /etc/profile.d/i18n.sh

if [ -r /etc/locale.conf ]; then source /etc/locale.conf; fi

if [ -n "$LANG" ];              then export LANG; fi
if [ -n "$LC_TYPE" ];           then export LC_TYPE; fi
if [ -n "$LC_NUMERIC" ];        then export LC_NUMERIC; fi
if [ -n "$LC_TIME" ];           then export LC_TIME; fi
if [ -n "$LC_COLLATE" ];        then export LC_COLLATE; fi
if [ -n "$LC_MONETARY" ];       then export LC_MONETARY; fi
if [ -n "$LC_MESSAGES" ];       then export LC_MESSAGES; fi
if [ -n "$LC_PAPER" ];          then export LC_PAPER; fi
if [ -n "$LC_NAME" ];           then export LC_NAME; fi
if [ -n "$LC_ADDRESS" ];        then export LC_ADDRESS; fi
if [ -n "$LC_TELEPHONE" ];      then export LC_TELEPHONE; fi
if [ -n "$LC_MEASUREMENT" ];    then export LC_MEASUREMENT; fi
if [ -n "$LC_IDENTIFICATION" ]; then export LC_IDENTIFICATION; fi

# End /etc/profile.d/i18n.sh</code>
EOF</kbd>
</pre>
          <p>
            Then the <code class="filename">/etc/locale</code> file should be
            generated, as the <code class="systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class="command">cat &gt; /etc/locale.conf &lt;&lt; EOF
<code class="literal"># Begin /etc/locale.conf

LANG=$LANG

# End /etc/locale.conf</code>
EOF</kbd>
</pre>
          <p>
            If you plan to run an X (or Wayland) Window system, you may want
            to set up your X keyboard. The best way to do it is to retrieve
            the settings from <code class=
            "filename">/etc/sysconfig/console</code>, and feed them to the
            <span class="application">blocaled</span> daemon. As the
            <code class="systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class="command">source /etc/sysconfig/console &amp;&amp;
KEYMAP=${KEYMAP:-us}          &amp;&amp;

gdbus call --system                                             \
           --dest org.freedesktop.locale1                       \
           --object-path /org/freedesktop/locale1               \
           --method org.freedesktop.locale1.SetVConsoleKeyboard \
           "$KEYMAP" "$KEYMAP_CORRECTIONS" true true</kbd>
</pre>
          <p>
            This should create or modify the Xorg configuration file (default
            is <code class=
            "filename">/etc/X11/xorg.xonf.d/30-keyboard.conf</code>) to match
            the keyboard settings set in <code class="envar">KEYMAP</code>.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">blocaled (in <code class=
              "filename">/usr/libexec</code>)</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/share/blocaled</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="blocaled-prog" name=
                    "blocaled-prog"></a><span class="term"><span class=
                    "command"><strong>blocaled</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the daemon implementing the <span class=
                    "emphasis"><em>org.freedesktop.locale1</em></span>
                    D&ndash;Bus protocol
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-12 13:42:49 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="elogind.html" title="elogind-243.7">Prev</a>
          <p>
            elogind-243.7
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fcron.html" title="Fcron-3.2.1">Next</a>
          <p>
            Fcron-3.2.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
